package com.findyou.Service.ServiceImpl;

import com.findyou.Dao.DaoImpl.UserDaoImpl;
import com.findyou.Dao.UserDao;
import com.findyou.Service.UserService;
import com.findyou.empty.User;
import com.findyou.utils.BeanFactory;

/**
 * @Title: UserServiceImpl
 * @Author 贾金博
 * @Package com.findyou.Service.ServiceImpl
 * @Date 2024/11/3 下午3:02
 * @description: 用户Service实现类
 */
public class UserServiceImpl implements UserService {
    @Override
    public void insertUser(User user) {
        UserDao userDao = (UserDao)BeanFactory.getBean("userDao");
        userDao.insertUser(user);
    }
}
